package com.taotao.controller;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;

/**
 * @Package com.taotao.controller
 * @Description:
 * @Author elwyn
 * @Date 2017/9/2 14:30
 * @Email elonyong@163.com
 */
@Controller
public class PageController {
    /**
     * 首页
     * @return
     */
    @RequestMapping("/")
    public String showIndex() {
        return "index";
    }
    /**
     * 其他页面
     */
    @RequestMapping("/{page}")
    public String showpage(@PathVariable String page){
        return page;
    }
}
